<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>注册</title>
    <link rel="stylesheet" href="css/bower_components/bootstrap/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="css/bower_components/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="css/bower_components/plugins/css/vueAlert.css">
    <script src="css/bower_components/jquery/dist/jquery.min.js" ></script>
    <script src="css/bower_components/bootstrap/dist/js/bootstrap.min.js" ></script>

    <link rel="stylesheet" type="text/css" href="css/tooltip/css/tooltip.css">
    <title>Title</title>
    <style>
        body{
            font: 14px/1.3 PingFangSC-Light,PingFang SC,Helvetica,Tahoma,Arial,Microsoft YaHei,Hiragino Sans GB,WenQuanYi Micro Hei,sans-serif;
            color: #222;
            outline: 0;
        }
        .my_form_group label{
            display: inline-block;
            width: 100px;
            padding-right: 12px;
            vertical-align: middle;
            color: #555;
            text-align: right;
        }
        .my_input_group{

            display: inline-block;
            vertical-align: middle;
            position: relative;
            font-size: 0;
        }
        .m-input-large{
            width: 325px;
            height: 50px;
            font-size: 14px;
            line-height: 20px;
            padding-top: 15px;
            padding-bottom: 15px;
        }
        .m-input{
            color: #333;
            padding: 0 2em 0 1em;
            border: 1px solid #d9d9d9;
            border-radius: 2px;
            -moz-box-sizing: border-box;
            box-sizing: border-box;
            -webkit-transition: border .2s;
            -moz-transition: border .2s;
            transition: border .2s;
            -webkit-appearance: none;
        }
        .phone{
            padding-right: 32px;
        }
        .m-input:focus{
            border-color: #4486e9;
            box-shadow: 0 0 2px #4486e9;
        }
        input{
            outline: none;
        }
        .m-btn{
            width: 325px;
            height: 50px;
            font-size: 16px;
            line-height: 50px;
            color: #fff;
            background: #0056ff;
            margin-left: 116px;
            border: 0;
            border-radius: 2px;
        }
        .m-btn:hover{
            background: #5f99f1;
        }
        .m-input-icon{
            position: absolute;
            right: 0;
            top: 0;
            bottom: 0;
            height: 24px;
            margin: auto;
            font-size: 0;
            line-height: 24px;
        }
        .icon-clean{
            margin-right: 15px;
            font-size: 16px;
            display: inline-block;
            color: #ccc;
            cursor: pointer;
            vertical-align: middle;

        }
    </style>
</head>
<body>
<div style="margin: 0 50px;
                min-width: 900px;max-width: 1200px;
                position: relative;
                padding-top: 90px;">
    <h1 id="title" style="position: absolute;
                            left: 0;
                            top: 22px;
                            margin: 0;
                            padding: 0;">
        <a href="">
            <img src="images/logoMain.png"
                 style="width: 170px;height: 46px;">
        </a>
    </h1>
    <h1 style="position: absolute;
                font-size: 21px;
                left: 200px;
                top: 22px;
                line-height: 29px;
                margin: 0;
                padding: 0;">账号注册</h1>
</div>
<div id="app">
<form action="/register" method="post" @submit.prevent="register">
    <div style="background: #F3F5FB;
            min-width: 1200px;
            max-width: 1920px;
             min-height: 550px;
            max-height: 550px;
            margin: 0 auto;">
    <div  id="vshow" style="padding-top: 40px;">
        <div style="max-width: 870px;
            background: #fff;
                    margin: 0 auto;">
            <div style="max-width: 870px;
                        margin: 0 auto;
                        padding: 50px 0;
                        border-color: #fff;
                        box-shadow: 0 0 2px #fff;">
                <div style="max-width: 870px;
                            margin: 16px auto;
                            text-align: center" class="my_form_group">
                    <label>用户名</label>
                    <div class="my_input_group tooltip">
                        <input name="username" required="required" type="text" v-model="username" placeholder="请输入用户名" maxlength="11" class="m-input m-input-large phone">
                        <div v-show="name5" class="m-input-icon">
                            <i class="fa fa-times icon-clean" aria-hidden="true"></i>
                        </div>
                        <!--错误提示开始-->
                        <div class="Tooltip right in" style="display: none" :class="{'d-block':username_hasError}">
                            <div class="arrow arrow_border"></div>
                            <div class="arrow arrow_bg"></div>
                            <div class="tooltiptext">
                                <i class="ic-error fa fa-exclamation-triangle" aria-hidden="true"></i>
                                <span v-text="username_err_msg"></span>
                            </div>
                        </div>
                        <!--错误提示结束-->
                    </div>
                </div>
                <div style="max-width: 870px;
                            margin: 16px auto;
                            text-align: center" class="my_form_group">
                    <label>手机号码</label>
                    <div class="my_input_group tooltip">
                        <input name="phone" required="required" type="text" v-model="phone" placeholder="请输入手机号" maxlength="11" class="m-input m-input-large phone">
                        <div v-show="name1" class="m-input-icon">
                            <i class="fa fa-times icon-clean" aria-hidden="true"></i>
                        </div>
                        <!--错误提示开始-->
                        <div class="Tooltip right in" style="display: none" :class="{'d-block':phone_hasError}">
                            <div class="arrow arrow_border"></div>
                            <div class="arrow arrow_bg"></div>
                            <div class="tooltiptext">
                                <i class="ic-error fa fa-exclamation-triangle" aria-hidden="true"></i>
                                <span v-text="phone_err_msg"></span>
                            </div>
                        </div>
                        <!--错误提示结束-->
                    </div>
                </div>
                <div style="max-width: 870px;
                            margin: 16px auto;
                            text-align: center" class="my_form_group">
                    <label>邮箱</label>
                    <div class="my_input_group tooltip">
                        <input name="email" required="required" type="text" v-model="email" placeholder="请输入邮箱" maxlength="20" class="m-input m-input-large phone">
                        <div v-show="name2" class="m-input-icon">
                            <i class="fa fa-times icon-clean" aria-hidden="true"></i>
                        </div>
                        <!--错误提示开始-->
                        <div class="Tooltip right in" style="display: none" :class="{'d-block':email_hasError}">
                            <div class="arrow arrow_border"></div>
                            <div class="arrow arrow_bg"></div>
                            <div class="tooltiptext">
                                <i class="ic-error fa fa-exclamation-triangle" aria-hidden="true"></i>
                                <span v-text="email_err_msg"></span>
                            </div>
                        </div>
                        <!--错误提示结束-->
                    </div>
                </div>
                <div style="max-width: 870px;
                            margin: 16px auto;
                            text-align: center" class="my_form_group">
                    <label>密码</label>
                    <div class="my_input_group tooltip">
                        <input name="password" required="required" v-model="password" type="password" placeholder="请输入密码" maxlength="11" class="m-input m-input-large phone">
                        <div v-show="name3"  class="m-input-icon">
                            <i class="fa fa-times icon-clean" aria-hidden="true"></i>
                        </div>
                        <!--错误提示开始-->
                        <div class="Tooltip right in" style="display: none" :class="{'d-block':password_hasError}">
                            <div class="arrow arrow_border"></div>
                            <div class="arrow arrow_bg"></div>
                            <div class="tooltiptext">
                                <i class="ic-error fa fa-exclamation-triangle" aria-hidden="true"></i>
                                <span v-text="password_err_msg"></span>
                            </div>
                        </div>
                        <!--错误提示结束-->
                    </div>
                </div>
                <div style="max-width: 870px;
                            margin: 16px auto;
                            text-align: center" class="my_form_group">
                    <label>确认密码</label>
                    <div class="my_input_group tooltip">
                        <input name="confirm" required="required" v-model="confirm" type="password" placeholder="请确认密码" maxlength="11" class="m-input m-input-large phone">
                        <div v-show="name4"  class="m-input-icon">
                            <i class="fa fa-times icon-clean" aria-hidden="true"></i>
                        </div>
                        <!--错误提示开始-->
                        <div class="Tooltip right in" style="display: none"
                             :class="{'d-block':confirm_hasError}">
                            <div class="arrow arrow_border"></div>
                            <div class="arrow arrow_bg"></div>
                            <div class="tooltiptext" >
                                <i class="ic-error fa fa-exclamation-triangle" aria-hidden="true"></i>
                                <span v-text="confirm_err_msg"></span>
                            </div>
                        </div>
                        <!--错误提示结束-->
                    </div>
                </div>
                <div style="max-width: 850px;
                            margin: 16px auto;
                            text-align: center" class="my_form_group">
                   <button type="submit" class="m-btn" style="">注册</button>
                </div>
            </div>
        </div>
    </div>
    </div>
</form>
</div>
<!--引入Vue-->
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<!--引入axios-->
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>
<script src="js/utils.js"></script>
<script src="js/register.js"></script>
<script>


</script>
</body>
</html>